Skip to main content

GET Recently Deleted Audios

Overview


The following table contains information about the GET method for retrieving recently deleted audios.

GET Recently Deleted Audios
MethodGET
URL or Endpoint/api/v1/projectId/audios/recently-deleted
HeadersAuthorization
ParametersprojectId, search, order, insertedDate, page, take, folderId, folderView, onlyReady, onlyPublishedAudios, key, value, author, podcastId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
folderIdNointegerUnique identifier of the folder
folderViewNobooleanIndicates whether the folder is enabled for viewing
onlyReadyNobooleanIncludes only audios that have status ready
onlyPublishedAudiosNobooleanIncludes only audios that are published
keyNostringAudio key
valueNostringValue of the audio key
authorNostringFilter audios by author.
podcastIdNostringFilter audios by podcast identifier.
searchNostringSearch a specific audio
orderNostringSpecifies the sorting order.
insertedDateNostring($date-time)Date when the audio was inserted.
pageNointegerA specific page with audios.
takeNointegerNumber of audios to take.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 1,
"pageSize": 10,
"totalCount": 1,
"items": [
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"audioAuthor": "{audioAuthor}",
"deletedBy": "{deletedBy}",
"status": "Ready",
"publishDate": "2024-03-05T22:35:00",
"updateDate": "2024-03-05T22:35:00",
"canEmbed": true,
"thumbnail": "{thumbnailUrl}",
"duration": 15.072653,
"folderId": 0,
"folder": "{folder}",
"progress": 0,
"estimatedFinishTime": "{estimatedFinishTime}",
"showEncodingProgress": false,
"errorId": 0,
"error": "{error}",
"highlight": {}
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Top-Level Properties

Field NameTypeDescription
successbooleanIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultobjectReturns the response object
currentPageintegerNumber of the current page
totalPagesintegerNumber of the total page
pageSizeintegerThe size of the page
totalCountintegerNumber of the total records
itemsarray[object]Array of audio objects on the current page.
resultInfostringReturns extra information about the result
statusCodeintegerReturns the HTTP Status Code

items Properties

Field NameTypeDescription
titlestringTitle of the audio
publicIdstringUnique identifier of the audio
authorstringAuthor of the audio
audioAuthorstringAuthor of the audio content
deletedBystringThe user who deleted the audio.
statusstringStatus of the audio
publishDatestringPublish date of the audio
updateDatestringDate when the audio was last updated.
canEmbedbooleanIndicates if the audio can be embedded
thumbnailstringThumbnail of the audio
durationdoubleDuration of the audio in seconds
folderIdintegerIdentifier of the folder
folderstringFolder details
progressdoubleProgress of the audio processing
estimatedFinishTimestringEstimated finish time for processing
showEncodingProgressbooleanIndicates if encoding progress should be shown
errorIdintegerUnique identifier for the error
errorstringDescription of the error
highlightobjectHighlight information

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed